x86/hvm: remove emulation context setting from hvmemul_cmpxchg()
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Fri, 7 Oct 2016 09:35:58 +0000 (11:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Oct 2016 09:35:58 +0000 (11:35 +0200)
commit84c1e7d8017c773c41d6e8b79384f37a67be1479
tree0f4344698f0f27f255cda3f15c042a541bb6d93d
parented7e33747da83ce805c00cd457e71075e34f0854
x86/hvm: remove emulation context setting from hvmemul_cmpxchg()

hvmemul_cmpxchg() sets the read emulation context in p_new instead
of p_old, which is inconsistent (and wrong). Since p_old is
unused in any case and cmpxchg() semantics would be altered even
if it wasn't, remove the emulation context setting code.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
xen/arch/x86/hvm/emulate.c